import { Spin } from 'antd'

import styles from './index.module.less'

/**
 * @param {import('antd/es/spin').SpinProps} props
 * @returns
 */
const AekSpin = props => {
  const { children, spinning = false, ...other } = props
  return (
    <Spin wrapperClassName={styles.spin} spinning={spinning} {...other}>
      {children}
    </Spin>
  )
}

export default AekSpin
